package com.controller;

import com.alibaba.dingtalk.openapi.utils.HttpHelper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

//物流信息
@Controller
@RequestMapping("/api")
public class LogisticsCtr {

    /**
     * 根据 组织id 获取物料信息
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/logistics/test", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public Map<String, Object> getMaterialListByOrgId(@RequestBody Map<String, Object> res) {
        Map map = new HashMap();
        String url = "http://api.kdniao.cc/Ebusiness/EbusinessOrderHandle.aspx";
//        HttpHelper.httpPost(url,);
//        KdniaoSubscribeAPI.main();
        return null;
    }
}
